package com.git.hui.yinshua.biz.order.dao.entity;

import com.git.hui.yinshua.api.model.order.PtOrderStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 拼团订单详情
 *
 * @author YiHui
 * @date 2024/7/2
 */
@Data
public class PtOrderItemEntity implements Serializable {
    private Integer id;
    /**
     * 拼团单
     */
    private Integer ptOrderId;
    /**
     * 关联订单号
     */
    private Long relatedOrderId;
    /**
     * 购买用户userId
     */
    private Integer uid;
    /**
     * 购买用户昵称
     */
    private String nickname;
    /**
     * 用户头像
     */
    private String avatar;
    /**
     * 拼团状态
     *
     * @see PtOrderStatusEnum#getStatus()
     */
    private Integer ptStatus;
    /**
     * 参团时间
     */
    private Timestamp participationTime;
    private Integer deleted;
    private Timestamp createAt;
    private Timestamp updateAt;
}
